//
//  CarDetailViewModel.h
//  CarUser
//
//  Created by ayi on 2019/1/8.
//  Copyright © 2019 王森林. All rights reserved.
//
typedef NS_OPTIONS(NSUInteger, Car_DetailCellType) {
    Car_DetailCellType_SD = 1,
    Car_DetailCellType_INFO = 2,
    Car_DetailCellType_CarFromInfo = 3,
    Car_DetailCellType_Warranty = 4,
    Car_DetailCellType_Promise = 5,
    Car_DetailCellType_Comment = 6,
    Car_DetailCellType_More = 7
};



#import "TabviewViewModel.h"

#import "CarImgModel.h"
#import "CarDetailInfoModel.h"
#import "CarConfigurationModel.h"
#import "CarCommentModel.h"
#import "CarSaleCarListModel.h"
#import "CarDetailBaseModel.h"

#import "CustomIMSendMessageView.h"

@class CarDetailMainModel;
@interface CarDetailViewModel : TabviewViewModel

@property (nonatomic, strong) RACCommand *raccommand;
@property (nonatomic, strong) RACCommand *sendCommentRaccommand;
@property (nonatomic, strong) RACCommand *dianzanRaccommand;

@property (nonatomic, weak) CustomIMSendMessageView *sendmessageview;

@property (nonatomic, strong) NSString *SALECAR_ID;
@property (nonatomic, strong) NSDictionary *modelDict;
@property (nonatomic, strong) CarDetailMainModel *model;
@property (nonatomic, strong) NSMutableArray<CarCommentModel *> *commentList;//评论
@property (nonatomic, strong) NSMutableArray<CarSaleCarListModel *> *recommendList;//推荐

@end





@interface CarDetailMainModel : CarDetailBaseModel

@property (nonatomic, strong) CarDetailInfoModel *cardetailInfoModel;//车型具体信息
@property (nonatomic, strong) NSMutableArray<CarConfigurationModel *> *aqList;//安全配置列表
@property (nonatomic, strong) NSMutableArray<CarConfigurationModel *> *ckList;//操控配置列表
@property (nonatomic, strong) NSMutableArray<CarConfigurationModel *> *ssList;//舒适配置列表
@property (nonatomic, strong) NSMutableArray<CarConfigurationModel *> *ysList;//颜色列表
@property (nonatomic, strong) NSMutableArray<CarImgModel *> *list;//车型图片列表


//自定义列表
@property (nonatomic, strong) NSMutableArray *typeList;
@property (nonatomic, assign) BOOL hasChoose;


+ (BOOL )hasChooseContrastWithID:(NSString *)SALECAR_ID;
+ (BOOL )addToArchiverWithMolde:(CarDetailMainModel *)model;
+ (BOOL )addToArchiverWithAry:(NSArray<CarDetailMainModel *> *)ary;
+ (NSMutableArray *)contrastList;
+ (BOOL)clearContrastList;

@end
